import { ApiCall } from "tsrpc";
import { ReqMenu, ResMenu } from "../../../../shared/master/minGame/Roulette/PtlMenu";
import { player } from "../../../../model/fight/body/player";
import Roulette from "./Roulette";
import { template } from "../../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqMenu, ResMenu>) {
    call.succ({})
    let user = call.req._player as player;
    if(user.is_die()){
        user.sendMsg(template.default,'你已死亡请先[复活].')
        return;
    }
    Roulette.menu(user);
}